package com.lhf.userservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 权限(FvsSysPer)表实体类
 *
 * @author liuhf
 * @since 2021-03-29 16:02:05
 */
@SuppressWarnings("serial")
public class FvsSysPer extends Model<FvsSysPer> {
    //主键
    @TableId(type = IdType.AUTO)
    private Long pid;
    //权限
    private String per;
    //权限名
    private String perName;
    //权限图标
    private String pIcon;
    //父级权限ID
    private Long parent;
    //权限类型 0菜单 1按钮
    private Integer type;
    //请求路径
    private String path;


    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPer() {
        return per;
    }

    public void setPer(String per) {
        this.per = per;
    }

    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName;
    }

    public String getpIcon() {
        return pIcon;
    }

    public void setpIcon(String pIcon) {
        this.pIcon = pIcon;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.pid;
    }
}
